// 封装首页相关接口
import request from '@/utils/request.js'

// 获取首页轮播图
export const getIndexBannerService = () => {
	return request({
		url: '/carousel-index',
		method: 'GET'
	})
}

// 获取首页热门景点数据
export const getHotSceneryService = () => {
	return request({
		url: '/scenery/hot',
		method: 'GET'
	})
}

// 获取首页热门酒店数据
export const getHotHotelService = () => {
	return request({
		url: '/hotel/hot',
		method: 'GET'
	})
}

// 获取首页热门餐厅数据
export const getHotRestaurantService = () => {
	return request({
		url: '/restaurant/hot',
		method: 'GET'
	})
}

// 获取首页热门攻略数据
export const getHotPostService = () => {
	return request({
		url: '/post/hot',
		method: 'GET'
	})
}